using System.Collections;
using System.Windows;
using System.Windows.Controls;

namespace Select.Control.FormItem;

public partial class SelectDoubleFormItem : UserControl
{
    public string Label { get; set; }

    public static readonly DependencyProperty OptionsProperty =
        DependencyProperty.Register("Options", typeof(IEnumerable), typeof(SelectDoubleFormItem), new PropertyMetadata(null));

    public IEnumerable Options
    {
        get { return (IEnumerable)GetValue(OptionsProperty); }
        set { SetValue(OptionsProperty, value); }
    }
    
    public static readonly DependencyProperty SelectedItemProperty =
        DependencyProperty.Register("SelectedItem", typeof(object), typeof(SelectDoubleFormItem),
            new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));

    public object SelectedItem
    {
        get => GetValue(SelectedItemProperty);
        set => SetValue(SelectedItemProperty, value);
    }
    
    public static readonly DependencyProperty Options2Property =
        DependencyProperty.Register("Options2", typeof(IEnumerable), typeof(SelectDoubleFormItem), new PropertyMetadata(null));

    public IEnumerable Options2
    {
        get { return (IEnumerable)GetValue(Options2Property); }
        set { SetValue(Options2Property, value); }
    }
    
    public static readonly DependencyProperty SelectedItem2Property =
        DependencyProperty.Register("SelectedItem2", typeof(object), typeof(SelectDoubleFormItem),
            new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));

    public object SelectedItem2
    {
        get => GetValue(SelectedItem2Property);
        set => SetValue(SelectedItem2Property, value);
    }
    
    public SelectDoubleFormItem()
    {
        InitializeComponent();
    }
}